public class Motorbike extends Car{
    static{
        System.out.println("读入摩托车系统……");
    }
    {
        System.out.println("摩托车启动……");
    }
    private String nativespot;
    private int wheel =2;
    public Motorbike(int turnrate, double radius, double usetime,int passanger, String nativespot) {
        super.Car(turnrate, radius, usetime, passanger);
        this.nativespot =nativespot;
    }
    
    //setter&getter
    public void setNativespot(String inputn) {
        nativespot = inputn;
    }
    public String getNativespot() {
        return nativespot;
    }
    public int getWheel(){
        return wheel;
    }

    //摩托车功能描述
    public void getFuntion(){
        System.out.println("[功能] 摩托车是一种快速交通工具，常被运用于各越野赛中");
    }

    public void getValue() {
        System.out.println();
        super.getValue();
        System.out.println("[车轮数] " +this.getWheel());
        System.out.println("[原产地]"+ this.getNativespot());
    }
    public void warnSafe() {
        System.out.println("您的车速已达到了" + String.format("%.2f", this.getSpeed()) +"km/m，请注意安全！");
        
    }
}